import React from 'react'
import { Switch, Route } from 'react-router-dom'

import Home from './pages/Home'
import About from './pages/About'
import Product from './pages/Product'
import Contact from './pages/Contact'

console.log("test")

class App extends React.Component {
    render() {
        return (
            <div style={{minWidth: 300}}>
                <Switch>
                    <Route path="/about" component={About}></Route>
                    <Route path="/product" component={Product}></Route>
                    <Route path="/contact" component={Contact}></Route>
                    <Route component={Home}></Route>
                </Switch>
            </div>
        );
    }
}

export default App
